package com.sum.common.utils;

/**
 * 通用工具类
 * 
 * @author Administrator
 * 
 */
public class SortUtils {
	public static int[] Sort(int[] array, int len) {
		int tmpIntValue = 0;
		for (int xIndex = 0; xIndex < len; xIndex++) {
			for (int yIndex = 0; yIndex < len; yIndex++) {
				if (array[xIndex] < array[yIndex]) {
					tmpIntValue = (Integer) array[xIndex];
					array[xIndex] = array[yIndex];
					array[yIndex] = tmpIntValue;
				}
			}
		}
		int[] reary = new int[len];
		System.arraycopy(array, 0, reary, 0, len);
		return reary;
	}
}
